<template>
  <button class="flex-column-center">
    <div class="svg-wrapper-1">
      <div class="svg-wrapper">
        <svg
          xmlns="http://www.w3.org/2000/svg"
          viewBox="0 0 24 24"
          width="16"
          height="16"
        >
          <path fill="none" d="M0 0h24v24H0z"></path>
          <path
            fill="currentColor"
            d="M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.529-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685z"
          ></path>
        </svg>
      </div>
    </div>
    <span>Send</span>
  </button>
</template>

<script setup></script>

<style scoped lang="less">
button {
  font-size: 14px;
  background: royalblue;
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  border: none;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
button span {
  margin-left: 5px;
  transition: all 0.3s ease-in-out;
}
button svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}
button:hover .svg-wrapper {
  animation: fly-1 0.6s ease-in-out infinite alternate;
}
button:hover svg {
  transform: translateX(20px) rotate(45deg) scale(1.1);
}
button:hover span {
  transform: translateX(80px);
}
button:active {
  transform: scale(0.95);
}
@keyframes fly-1 {
  from {
    transform: translateY(2px);
  }
  to {
    transform: translateY(-2px);
  }
}
</style>
